package com.iot.service;

import com.iot.mapper.DTwork_zdMapper;
import com.iot.mapper.Twork_zdMapper;
import com.iot.pojo.MTwork_zd;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class Twork_zdSerivceImpl implements Twork_zdSerivce {
    @Autowired
    private Twork_zdMapper mapper;
   @Autowired
    private DTwork_zdMapper dmapper;

    @Override
    public int getRecordCount(String sWhere) {
        return mapper.getRecordCount(sWhere);
    }

    @Override
    public int insert(MTwork_zd mTwork_zd) {
        return mapper.insert(mTwork_zd);
    }

    @Override
    public void update(MTwork_zd mTwork_zd) {
        mapper.update(mTwork_zd);
    }

    @Override
    public void deleteById(int id) {
        mapper.deleteById(id);
    }

    @Override
    public MTwork_zd single(Integer id) {
        return mapper.single(id);
    }

    @Override
    public List<MTwork_zd> fetch(String sWhere) {
        return mapper.fetch(sWhere);
    }

    @Override
    public List<Map<String, Object>> fetchByPage(Map<String, Object> map) {

        return dmapper.fetchByPage(map);
    }



}
